package zsw.singon;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class HunrySingleTest {
	
	public static void main(String[] args) throws Exception {
		
		/*HunrySingle instance = HunrySingle.getInstance();
		
		ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("tempFile"));
        oos.writeObject(instance);
        oos.flush();
        oos.close();
        //Read Obj from file
        File file = new File("tempFile");
        ObjectInputStream ois =  new ObjectInputStream(new FileInputStream(file));
        HunrySingle instances =  (HunrySingle) ois.readObject();
        System.out.println(instances==instance);
        System.out.println(instances.equals(instance));*/
        
	/*	HunrySingle instance = HunrySingle.getInstance();
		HunrySingle clone = (HunrySingle) instance.clone();
		
		System.out.println(instance==clone);*/

	}

}
